home *** CD-ROM | disk | FTP | other *** search
/ Super League / Super League.iso / TUTORIAL / CURSO / WHERE.DXR / 00020.ls < prev    next >
Encoding:
Text File  |  1997-03-25  |  976 b   |  43 lines

  1. on enterFrame
  2.   global var1, var2
  3.   if chars(var2, 6, 6) = "1" then
  4.     set the visible of sprite 30 to 1
  5.   end if
  6.   if chars(var2, 6, 6) = "2" then
  7.     set the visible of sprite 31 to 1
  8.   end if
  9.   if chars(var2, 6, 6) = "3" then
  10.     set the visible of sprite 32 to 1
  11.   end if
  12.   if chars(var2, 6, 6) = "4" then
  13.     if var1 < 6 then
  14.       set the visible of sprite 33 to 1
  15.     end if
  16.     if (var1 <= 21) and (var1 > 5) then
  17.       set the visible of sprite 34 to 1
  18.     end if
  19.     if var1 > 21 then
  20.       set the visible of sprite 35 to 1
  21.     end if
  22.   end if
  23.   if chars(var2, 6, 6) = "5" then
  24.     if var1 <= 72 then
  25.       set the visible of sprite 36 to 1
  26.     end if
  27.     if (var1 <= 77) and (var1 > 72) then
  28.       set the visible of sprite 37 to 1
  29.     end if
  30.     if (var1 <= 81) and (var1 > 77) then
  31.       set the visible of sprite 38 to 1
  32.     end if
  33.     if var1 > 81 then
  34.       set the visible of sprite 39 to 1
  35.     end if
  36.   end if
  37. end
  38.  
  39. on exitFrame
  40.   general()
  41.   go(#loop)
  42. end
  43.